\hypertarget{classAddress}{
\section{Address Class Reference}
\label{classAddress}\index{Address@{Address}}
}
The \hyperlink{classAddress}{Address} class specifies the pair $<$IP address-port$>$ of an entity in the distributed system.  


{\tt \#include $<$address.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{classAddress_69a01db36be374e934ed33c773e31b7f}{
\hyperlink{classAddress_69a01db36be374e934ed33c773e31b7f}{Address} (void)}
\label{classAddress_69a01db36be374e934ed33c773e31b7f}

\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
\hyperlink{classAddress_d6672276891624455db20e11c4d4473f}{Address} (boost::uint16\_\-t val)
\begin{CompactList}\small\item\em Constructor to specific port. \item\end{CompactList}\item 
\hyperlink{classAddress_aa4aa38d51cb98020c9413e98697f624}{Address} (const std::string \&ip)
\begin{CompactList}\small\item\em Constructor with IP address provided. \item\end{CompactList}\item 
\hyperlink{classAddress_ee916975559323f2cb9e56c296a81825}{Address} (const std::string \&ip, boost::uint16\_\-t p)
\begin{CompactList}\small\item\em Constructor with IP address ond port provided. \item\end{CompactList}\item 
\hypertarget{classAddress_06b6a8af618c8caf93add897e838dfba}{
\hyperlink{classAddress_06b6a8af618c8caf93add897e838dfba}{$\sim$Address} (void)}
\label{classAddress_06b6a8af618c8caf93add897e838dfba}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
boost::uint16\_\-t \hyperlink{classAddress_562e60731726890ef6e80a36fdcb5100}{getPort} () const 
\begin{CompactList}\small\item\em This method returns value of port. \item\end{CompactList}\item 
void \hyperlink{classAddress_3666dcd932c86543932ccda6372061e4}{setPort} (boost::uint16\_\-t val)
\begin{CompactList}\small\item\em Set current port to the provided value. \item\end{CompactList}\item 
const std::string \hyperlink{classAddress_ef886c2252fd42375ff32d616f659961}{getIP} () const 
\begin{CompactList}\small\item\em This method returns value of IP. \item\end{CompactList}\item 
void \hyperlink{classAddress_11e114779f3708d0f25b0cadf9ae9e8f}{setIP} (const std::string \&val)
\begin{CompactList}\small\item\em Set current IP address to the provided value. \item\end{CompactList}\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
\hypertarget{classAddress_c98d07dd8f7b70e16ccb9a01abf56b9c}{
class \textbf{boost::serialization::access}}
\label{classAddress_c98d07dd8f7b70e16ccb9a01abf56b9c}

\end{CompactItemize}


\subsection{Detailed Description}
The \hyperlink{classAddress}{Address} class specifies the pair $<$IP address-port$>$ of an entity in the distributed system. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classAddress_d6672276891624455db20e11c4d4473f}{
\index{Address@{Address}!Address@{Address}}
\index{Address@{Address}!Address@{Address}}
\subsubsection[Address]{\setlength{\rightskip}{0pt plus 5cm}Address::Address (boost::uint16\_\-t {\em val})}}
\label{classAddress_d6672276891624455db20e11c4d4473f}


Constructor to specific port. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]the specific port. \end{description}
\end{Desc}
\hypertarget{classAddress_aa4aa38d51cb98020c9413e98697f624}{
\index{Address@{Address}!Address@{Address}}
\index{Address@{Address}!Address@{Address}}
\subsubsection[Address]{\setlength{\rightskip}{0pt plus 5cm}Address::Address (const std::string \& {\em ip})}}
\label{classAddress_aa4aa38d51cb98020c9413e98697f624}


Constructor with IP address provided. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ip}]the provided ip address. \end{description}
\end{Desc}
\hypertarget{classAddress_ee916975559323f2cb9e56c296a81825}{
\index{Address@{Address}!Address@{Address}}
\index{Address@{Address}!Address@{Address}}
\subsubsection[Address]{\setlength{\rightskip}{0pt plus 5cm}Address::Address (const std::string \& {\em ip}, \/  boost::uint16\_\-t {\em p})}}
\label{classAddress_ee916975559323f2cb9e56c296a81825}


Constructor with IP address ond port provided. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ip}]the provided ip address. \item[{\em p}]the provided port. \end{description}
\end{Desc}


\subsection{Member Function Documentation}
\hypertarget{classAddress_562e60731726890ef6e80a36fdcb5100}{
\index{Address@{Address}!getPort@{getPort}}
\index{getPort@{getPort}!Address@{Address}}
\subsubsection[getPort]{\setlength{\rightskip}{0pt plus 5cm}boost::uint16\_\-t Address::getPort (void) const}}
\label{classAddress_562e60731726890ef6e80a36fdcb5100}


This method returns value of port. 

\begin{Desc}
\item[Returns:]current port. \end{Desc}
\hypertarget{classAddress_3666dcd932c86543932ccda6372061e4}{
\index{Address@{Address}!setPort@{setPort}}
\index{setPort@{setPort}!Address@{Address}}
\subsubsection[setPort]{\setlength{\rightskip}{0pt plus 5cm}void Address::setPort (boost::uint16\_\-t {\em val})}}
\label{classAddress_3666dcd932c86543932ccda6372061e4}


Set current port to the provided value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]provided port. \end{description}
\end{Desc}
\hypertarget{classAddress_ef886c2252fd42375ff32d616f659961}{
\index{Address@{Address}!getIP@{getIP}}
\index{getIP@{getIP}!Address@{Address}}
\subsubsection[getIP]{\setlength{\rightskip}{0pt plus 5cm}const std::string Address::getIP () const}}
\label{classAddress_ef886c2252fd42375ff32d616f659961}


This method returns value of IP. 

\begin{Desc}
\item[Returns:]current IP address. \end{Desc}
\hypertarget{classAddress_11e114779f3708d0f25b0cadf9ae9e8f}{
\index{Address@{Address}!setIP@{setIP}}
\index{setIP@{setIP}!Address@{Address}}
\subsubsection[setIP]{\setlength{\rightskip}{0pt plus 5cm}void Address::setIP (const std::string \& {\em val})}}
\label{classAddress_11e114779f3708d0f25b0cadf9ae9e8f}


Set current IP address to the provided value. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em val}]provided IP address. \end{description}
\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
\hyperlink{address_8h}{address.h}\item 
\hyperlink{address_8cpp}{address.cpp}\end{CompactItemize}
